<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span>
                            <img alt="image" width="70px" height="70px" class="img-circle" src="{$_W['siteroot']}../addons/{MOD_ADD}/static/admin/H/img/icon.jpg" />
                    </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear">
                                <span class="block m-t-xs">
                                    <strong class="font-bold">月牙堂礼品卡</strong>
                                </span>
                            </span>
                    </a>
                </div>
                <div class="logo-element">
                    月牙堂礼品卡
                </div>
            </li>

            {loop $this->menus $vo}
            {if  empty($vo['_data'])}
                <li {if $m}{if strpos($vo['mca'],$m) !==false }class="active"{/if}{/if}>
                    <a href="{php echo gWebUrl($vo['mca'])}">
                        <i class="fa {$vo['icon']}"></i>
                        <span class="nav-label">{$vo['name']}</span>
                    </a>
                </li>
            {else}
            <li {if $m}{if strpos($vo['mca'],$m) !==false } class="active"{/if}{/if}>
                <a href="{php echo gWebUrl($vo['mca'])}">
                    <i class="fa {$vo['icon']}"></i>
                    <span class="nav-label">{$vo['name']}</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    {loop $vo['_data'] $v}
                    {if empty($v['_data'])}
                        <li {if $y}{if strpos($v['mca'],$y) !==false }class="active"{/if}{/if}>
                            <a href="{php echo gWebUrl($v['mca'])}">{$v['name']}</a>
                        </li>
                    {else}
                        <li {if $y}{if strpos($v['mca'],$y) !==false } class="active"{/if}{/if}>
                            <a href="{php echo gWebUrl($v['mca'])}">
                                {$v['name']}
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-third-level">
                                {loop $v['_data'] $vs}
                                <li {if $z}{if strpos($vs['mca'],$z) !==false }class="active"{/if}{/if}>
                                    <a href="{php echo gWebUrl($vs['mca'])}">{$vs['name']}</a>
                                </li>
                                {/loop}
                            </ul>
                        </li>
                    {/if}
                    {/loop}
                </ul>
            </li>
            {/if}
            {/loop}
        </ul>
    </div>
</nav>